package com.movie.api.mapper;

import org.apache.ibatis.annotations.Select;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper
public interface ActorMapper {

    @Select("SELECT actor.name FROM actor WHERE film_id = #{filmId};")
    List<String> getActors(String filmId);

}